package org.jeecg.modules.zhima.center.service;

import org.jeecg.modules.zhima.center.entity.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: oms_order
 * @Author: jeecg-boot
 * @Date:   2020-08-27
 * @Version: V1.0
 */
public interface IOmsOrderService extends IService<OmsOrder> {

    List<OmsOrder> list(Integer memberId, Integer status);

    List<OmsOrder> listByIdAndStatus(Integer id, Integer status);

    List<OmsOrder> getTimeOutOrders(Integer minute);

    @Transactional
    OmsOrder onPaySuccess(OmsOrder order);

    OmsOrder getByOrderSn(String orderSn);

}
